<template>
	<view>
		<web-view :webview-styles="webviewStyles" :src="srcUrl"></web-view>
		<tabbarVue :current="0"></tabbarVue>
	</view>
</template>

<script>
	import tabbarVue from '@/components/tabbar/index.vue'
	export default {
		name: "webview",
		data() {
			return {
				srcUrl:'',
				webviewStyles:{
					width:'100vw',
					height:'100vh'
				}
			}
		},
		onLoad(options) {
			uni.setNavigationBarTitle({
				title:options.title
			})
			this.srcUrl = decodeURIComponent(options.url);
		}
	}
</script>

<style>
</style>